Pod::Spec.new do |s|
  s.name     = 'BaiduMap'
  s.version  = '2.8.1.4'
  s.summary  = 'The iOS SDK for Baidu Map.'
  s.homepage = 'http://git.oschina.net/jiashengmi/Baidu-Map-SDK-iOS'
  s.author   = { 'ingo' => 'ingocraft118@gmail.com' }
  s.license  = { :type => 'Copyright', :text => <<-LICENSE
                   ©2015 Baidu
                 LICENSE
               }
  s.source   = { :git => 'https://git.oschina.net/jiashengmi/Baidu-Map-SDK-iOS.git', :tag => '2.8.1.4' }
  s.platform     = :ios, '4.3'
  s.frameworks   = "UIKit", "CoreLocation", "QuartzCore", "OpenGLES", "SystemConfiguration", "CoreGraphics", "Security"
  s.libraries    = 'stdc++'
  s.xcconfig = { 'OTHER_LDFLAGS' => '-lObjC' }

  s.requires_arc = true

  s.default_subspec = 'All'

  ### 子模块

  # 完整功能的SDK
  s.subspec 'All' do |alls|
    alls.requires_arc = true
    alls.vendored_frameworks = 'BaiduMap/Frameworks/BaiduMapAPI.framework'
    alls.resource = 'BaiduMap/Frameworks/BaiduMapAPI.framework/Resources/mapapi.bundle'
  end

end
